//
//  CTMediator+WSDiscoverAction.m
//  CharonTVProject
//
//  Created by karong on 2023/7/31.
//

#import "CTMediator+WSDiscoverAction.h"

NSString * const WSCTMediatorTargetDiscover = @"Discover";
NSString * const WSCTMediatorActioncharonTV_Channel = @"charonTV_channel";
NSString * const GRCTMediatorActioncharonTV_Search = @"charonTV_search";
NSString * const GRCTMediatorActioncharonTV_SearchResult = @"charonTV_searchResult";
NSString * const GRCTMediatorActioncharonTV_ChannelMore = @"charonTV_channelMore";
NSString * const GRCTMediatorActioncharonTV_Favorites = @"charonTV_favorites";

@implementation CTMediator (WSDiscoverAction)

- (UIViewController *)ct_showcharonTV_ChannelWithChannel:(id)channel {
    return [self performTarget:WSCTMediatorTargetDiscover
                        action:WSCTMediatorActioncharonTV_Channel
                        params:@{@"channel":channel}
             shouldCacheTarget:YES];
}

- (UIViewController *)ct_showcharonTV_SearchVC {
    return [self performTarget:WSCTMediatorTargetDiscover
                        action:GRCTMediatorActioncharonTV_Search
                        params:@{}
             shouldCacheTarget:YES];
}

- (UIViewController *)ct_showcharonTV_SearchResult {
    return [self performTarget:WSCTMediatorTargetDiscover
                        action:GRCTMediatorActioncharonTV_SearchResult
                        params:@{}
             shouldCacheTarget:YES];
}

- (UIViewController *)ct_showcharonTV_ChannelMoreWithSort_type:(NSInteger)sort_type {
    return [self performTarget:WSCTMediatorTargetDiscover
                        action:GRCTMediatorActioncharonTV_ChannelMore
                        params:@{}
             shouldCacheTarget:YES];
}

- (UIViewController *)ct_showcharonTV_FavritesWithChannel:(id)channel {
    return [self performTarget:WSCTMediatorTargetDiscover
                        action:GRCTMediatorActioncharonTV_Favorites
                        params:@{@"channel":channel}
             shouldCacheTarget:YES];
}
@end
